public class Recorder {
    public static int sendFrameNumOfChannel = 0;//信道开始传输的次数
    public static int collisionNumOfChannel = 0;
    public static int emptyNum = 0;

    public static double getCollisionOfChannelP() {
        return (double) Recorder.collisionNumOfChannel / Recorder.sendFrameNumOfChannel;
    }

    public static double getEmptyP(Long slotNum) {
        return (double) Recorder.emptyNum / slotNum;
    }
}
